//
//  ModelOfAppearanceCommunityData.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/12.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ModelOfAppearanceCommunityData.h"
#import "ModelOfAppearanceCommunityForum_list.h"
@implementation ModelOfAppearanceCommunityData
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr = [NSMutableArray array];
    if ([key isEqualToString:@"ask"]) {
        self.ask = [value integerValue];
    }if ([key isEqualToString:@"company"]) {
        self.company = [value integerValue];
    }if ([key isEqualToString:@"forum_list"]) {
        for (NSDictionary *dic in value) {
            ModelOfAppearanceCommunityForum_list *model = [ModelOfAppearanceCommunityForum_list modelWithDic:dic];
            [arr addObject:model];
        }
        self.forum_list  = arr;
    }
}
@end
